$(document).ready(function(){
$('#newLeadForm').submit(function(){
	if($('#phone').attr('value').length !=0 || $('#zipCode').attr('value').length !=0 || $('#annRev').attr('value').length !=0){
	var phoneIsNum = $('#phone').isNumber({errorClass: ".numberError"});
	var zipCodeIsNum = $('#zipCode').isNumber({errorClass: ".numberError"});
	var annRevIsNum = $('#annRev').isNumber({errorClass: ".numberError"});
	//alert('xor ' + (phoneIsNum  || zipCodeIsNum));
	//alert('xand ' + (phoneIsNum  && zipCodeIsNum));
	if((phoneIsNum && zipCodeIsNum && annRevIsNum) == false){
		//alert('false');
        $('.numberError').css('visibility', 'visible');
        $('.numberError').css('display', 'block');
		return false;
	}
	else if((phoneIsNum && zipCodeIsNum && annRevIsNum) == true){
		//alert('true');
        $('.numberError').css('visibility', 'hidden');
        $('.numberError').css('display', 'none');
		return true;
	}
	}
	else{
		return true;
	}
});
});